﻿using System;
using System.Reflection;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace HashFoo.MigratorFooTests
{
    [TestClass]
    public class MigrationAttributeTests
    {
        public string MockAssemblyPath
        {
            get { return Assembly.GetExecutingAssembly().GetCodeBaseAsLocalPath(); }
        }

        [TestMethod]
        public void CanFindMockAssembly()
        {
            var assemblyPath = this.MockAssemblyPath;
            Console.WriteLine(@"assembly path: {0}", assemblyPath);
            Assert.IsTrue(File.Exists(assemblyPath));
        }
    }
}
